Yacon.component.TMultiCell = function(conText){
	
	Yacon.apply(this,conText);
	
	this.baseCreate();
};

Yacon.component.TMultiCell.prototype = {
	
	baseCreate: function(){
		
	},
	
	/* 获取字段标示 */
	getFieldName: function(){
		return this.activeCell.attr("fieldName");
	},
	
	/* 获取字段值 */
	getFieldValue: function(){
		return this.activeCell.attr("fieldValue");
	},
	
	/* 获取列号 */
	getColNo: function(){
		return this.activeCell.attr("fieldCol");
	},
	
	/* 获取行号 */
	getRowNo: function(){
		return this.activeCell.attr("fieldRow");
	},
	
	/* 获取跨行数 */
	getRowSpan: function(){
		return this.activeCell.prop("colspan");
	},
	
	/* 获取跨列数 */
	getColSpan: function(){
		return this.activeCell.prop("rowspan");
	},
	
	/* 获取JQuery活动对象 */
	getActiveCell: function(){
		return this.activeCell;
	},
	
	isTitle: function(){
		if(this.activeCell.hasClass("title-field")){
			return true;
		}else{
			return false;
		}
	},
	
	isData: function(){
		if(this.activeCell.hasClass("data-field")){
			return true;
		}else{
			return false;
		}
	},
	
	/* 获取行表格信息 */
	getRowCells: function(){
		
		this.rows = new Array();
		
		var rowNo = this.getRowNo();
		
		var rowObjs = $(this.search + " .panel-body .table-responsive table.table tbody td[fieldRow='"+rowNo+"']");
		var length = rowObjs.length;
		
		for(var i=0;i<length;i++){
			var rowObj = rowObjs.eq(i);
			var activeObj = new Yacon.component.TMultiCell({
				activeCell : rowObj,
				page : this.page,
				parent: this.parent,
				search: this.search
			});
			this.rows.add(activeObj);
		}
		
		return this.rows;
		
	},
	
	/* 获取行表格信息 */
	getRowDataCells: function(){
		
		this.rows = new Array();
		
		var rowNo = this.getRowNo();
		
		var rowObjs = $(this.search + " .panel-body .table-responsive table.table tbody td.data-field[fieldRow='"+rowNo+"']");
		var length = rowObjs.length;
		
		for(var i=0;i<length;i++){
			var rowObj = rowObjs.eq(i);
			var activeObj = new Yacon.component.TMultiCell({
				activeCell : rowObj,
				page : this.page,
				parent: this.parent,
				search: this.search
			});
			this.rows.add(activeObj);
		}
		
		return this.rows;
		
	},
	
	/* 获取行表格信息 */
	getRowTitleCells: function(){
		
		this.rows = new Array();
		
		var rowNo = this.getRowNo();
		
		var rowObjs = $(this.search + " .panel-body .table-responsive table.table tbody td.title-field[fieldRow='"+rowNo+"']");
		var length = rowObjs.length;
		
		for(var i=0;i<length;i++){
			var rowObj = rowObjs.eq(i);
			var activeObj = new Yacon.component.TMultiCell({
				activeCell : rowObj,
				page : this.page,
				parent: this.parent,
				search: this.search
			});
			this.rows.add(activeObj);
		}
		
		return this.rows;
		
	},
	
	/* 获取列表格信息 */
	getColCells: function(){
		
		this.cols = new Array();
		
		var colNo = this.getColNo();
		
		var colObjs = $(this.search + " .panel-body .table-responsive table.table tbody td[fieldCol='"+colNo+"']");
		var length = colObjs.length;
		
		for(var i=0;i<length;i++){
			var colObj = colObjs.eq(i);
			var activeObj = new Yacon.component.TMultiCell({
				activeCell : colObj,
				page : this.page,
				parent: this.parent,
				search: this.search
			});
			this.cols.add(activeObj);
		}
		
		return this.cols;
		
	},
	
	/* 获取列表格信息 */
	getColTitleCells: function(){
		
		this.cols = new Array();
		
		var colNo = this.getColNo();
		
		var colObjs = $(this.search + " .panel-body .table-responsive table.table tbody td.title-field[fieldCol='"+colNo+"']");
		var length = colObjs.length;
		
		for(var i=0;i<length;i++){
			var colObj = colObjs.eq(i);
			var activeObj = new Yacon.component.TMultiCell({
				activeCell : colObj,
				page : this.page,
				parent: this.parent,
				search: this.search
			});
			this.cols.add(activeObj);
		}
		
		return this.cols;
		
	},
	
	/* 获取列表格信息 */
	getColDataCells: function(){
		
		this.cols = new Array();
		
		var colNo = this.getColNo();
		
		var colObjs = $(this.search + " .panel-body .table-responsive table.table tbody td.data-field[fieldCol='"+colNo+"']");
		var length = colObjs.length;
		
		for(var i=0;i<length;i++){
			var colObj = colObjs.eq(i);
			var activeObj = new Yacon.component.TMultiCell({
				activeCell : colObj,
				page : this.page,
				parent: this.parent,
				search: this.search
			});
			this.cols.add(activeObj);
		}
		
		return this.cols;
		
	}
	
	
};